package month4.day5.computer;

public class SSD_HD implements HardDisk{
    private double capacity;//容量

    @Override
    public void work() {
        System.out.println("硬盘工作，保存数据");
    }

    @Override
    public String toString() {
        return "硬盘容量：" + capacity+"T";
    }

    public SSD_HD(double capacity) {
        this.capacity = capacity;
    }

    public double getCapacity() {
        return capacity;
    }

    public void setCapacity(double capacity) {
        this.capacity = capacity;
    }
}
